package com.yuandian.middle.platform.mapper;

import com.yuandian.api.middle_platform.po.ApiSdkStatisticsPojo;
import com.yuandian.api.middle_platform.po.CommonStatisticsPojo;
import com.yuandian.api.middle_platform.po.OrgAbilityParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 说明：API和SDK指标数据查询-mapper接口
 * @Author tianlr
 * @Date 2023/5/16 10:35
 */
@Mapper
public interface ApiSdkStatisticsMapper {
    /**
     * 查询API和SDK指标数据（调用量、业务级成功次数、中断次数）
     * @param param 参数对象
     */
    public List<ApiSdkStatisticsPojo> selectApiOrSdkSnapshot(@Param("param") OrgAbilityParam param);

    /**
     * 查询API和SDK调用量趋势数据
     * @param param 参数对象
     */
    public List<ApiSdkStatisticsPojo> selectReqCountTrend(@Param("param") OrgAbilityParam param);

    /**
     * 查询API和SDK中断次数趋势数据
     * @param param 参数对象
     */
    public List<ApiSdkStatisticsPojo> selectInterruptCountTrend(@Param("param") OrgAbilityParam param);
}
